
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;
using System.Collections;

namespace Swaf.Gui
{
	/// <summary>
	/// Summary description for ChildInfo.
	/// </summary>
	[Serializable]
	public class ChildInfo
	{
		protected string m_name;
		protected string m_location;
		protected string m_childDefinition;
		protected string m_templateName;
		protected IDictionary m_extras = new Hashtable();

		public ChildInfo(string name, string location, string childDefinition, string templateName)
		{
			m_name = name;
			m_location = location;
			m_childDefinition = childDefinition;
			m_templateName = templateName;
		}

		public string Name{get{return m_name;}}
		public string Location{get{return m_location;}}
		public string ChildDefinition{get{return m_childDefinition;}}
		public string TemplateName{get{return m_templateName;}}

		public string this[string key]
		{
			get{return (string)m_extras[key];}
			set{m_extras[key] = value;}
		}
	}
}
